<html>
<head>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <g:layoutHead />
        <g:javascript library="GGGone" />
</head>
        
<body onload="${pageProperty(name:'body.onload')}">
	<div class="Hintergrund"></div>

	<div align="center" class="LogoBanner">
		<g:link controller="angebot" action="list">
			<img src="${resource(dir:'images',file:'Logo.jpg') }" alt="Logo"
				width="482" height="86" align="left" longdesc="Logo.jpg" dir="ltr" />
		</g:link>
		
	</div>

	<div style="font-family: Verdana, Geneva, sans-serif;" class="Header">
		<g:if test="${session?.user?.email}">
			<table width="*" height="50" border="0">
				<tr>
					<td width="100"></td>
					<td width="100"></td>
					<td width="100"></td>
					<td width="100"></td>
					<td width="100"></td>
					<td width="100"></td>
					<td width="100"></td>
					<td width="100"></td>
					<td width="100"><g:link style="color:white" controller="user"
							action="profil">Profil</g:link></td>
					<td width="100"></td>
					<td width="100"><g:link style="color:white"
							controller="angebot" action="list">Artikel</g:link></td>
					<td width="100"></td>
					<td width="100"><g:link style="color:white" controller="user"
							action="logout">Logout</g:link></td>
					<td width="100"></td>
				</tr>
			</table>
		</g:if>
	</div>

	<div style="font-family: Verdana, Geneva, sans-serif;"
		class="LeftNavigation">

		<div id="loginBox" class="loginBox">
			<g:if test="${session?.user?.email}">

				<br style="text-align: middle">
				<strong>Willkommen zur&uuml;ck <span id="userVorname">
						${session?.user?.vorname}! 
				</strong>
				</span>
				<br>
				<br>

				<ul>					
					<li><g:link style=" font-weight:100" controller="angebot"
							action="list">Alle Auktionen</g:link></li>
					<br>
					<li><g:link style=" font-weight:100" controller="angebot"
							action="showMeineAuktionen">Meine Auktionen</g:link></li>
					<br>

					<li><g:link style=" font-weight:100" controller="angebot"
							action="showTeilgenommeneAuktionen">Beteiligte Auktionen</g:link>
					</li>
					<br>
					<li><g:link style=" font-weight:100" controller="angebot"
							action="showGewonneneAuktionen">Gewonnene Auktionen</g:link></li>
					<br>
					<li><g:link style="font-weight:100" controller="angebot"
							action="angebotEinstellen">Angebot einstellen</g:link></li>
					<br>
					<li><g:link style="font-weight:100" controller="user"
							action="profil">Profilinformationen anzeigen</g:link></li>
					<br>
					<li><g:link style=" font-weight:100" controller="user"
							action="profilaendern">Profildaten &auml;ndern</g:link></li>
				</ul>

			</g:if>

			<g:else>

				<g:form name="loginForm" url="[controller:'user',action:'login']">
					<p align=left class="bold" >Login</p>
					<p>
						<span class="schrift">Email:</span><br>
						<g:textField name="email"></g:textField>
						<br> <br> <span class="Schrift">Passwort:</span>
						<g:passwordField name="password"></g:passwordField>
						<br> <br>
					</p>
					<p align=right; hpsace="5px">
						<span class="button"> <g:actionSubmit value="Log in" /> </span>
					</p>
				</g:form>

			</g:else>

		</div>

	</div>

	<div style="font-family: Verdana, Geneva, sans-serif;"
		class="Mittelfeld">

		<g:layoutBody />
	</div>

	<div style="font-family: Verdana, Geneva, sans-serif;" class="Footer">
		<table width="*" height="50" border="0">
			<tr>
				<td width="100"></td>
				<td width="100"></td>
				<td width="100"></td>
				<td width="100"></td>
				<td width="100"></td>
				<td width="100"><g:link style="color:white"
						controller="angebot" action="kontakt">Kontakt</g:link></td>
				<td width="100"></td>
				<td width="100"><g:link style="color:white"
						controller="angebot" action="impressum">Impressum</g:link></td>
				<td width="100"></td>
				<td width="100"><g:link style="color:white"
						controller="angebot" action="agb">AGBs</g:link></td>
				<td width="100"></td>
				<td width="100"><g:link style="color:white"
						controller="angebot" action="ueberuns">&Uuml;ber uns</g:link></td>
				<td width="100"></td>
				<td width="100"><g:link style="color:white"
						controller="images" action="Hilfe.pdf" target="_blank">Hilfe</g:link></td>
			</tr>
		</table>
	</div>
</body>
</html>